#include <stdio.h>
int main()
{
    int x, cnt = 0;
    scanf("%d", &x);
    for(int i = x / 5 + 1; i >= 1; i--)
    {
        for(int j = (x - 5 * i) + 1; j >= 1; j--)
        {
            if(i * 5 + j * 2 + 1 <= x)
            {
                printf("fen5:%d, fen2:%d, fen1:%d, total:%d\n", i, j, x - 5 * i - 2 * j, i + j + x - 5 * i - 2 * j);
                cnt++;
            }
        }
    }
    printf("count = %d", cnt);
    return 0;
}